<?php
/*------------------------------------------------------------------------
 # Sot Article Simple Slider  - Version 1.0
 # @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 # @Author: Sky Of Tech
 # @Websites: http://skyoftech.com
 # @Email: contactnum1@gmail.com
 # Copyright (C) 2010-2011 Sky Of Tech. All Rights Reserved.
 -------------------------------------------------------------------------*/
 
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once (dirname(__FILE__).DS.'helper.php');
require(dirname(__FILE__).DS.'process'.DS.'params.php');
/*-- start---*/


JHTML::stylesheet('style.css', JURI::base() . 'modules/'.$module->module.'/assets/css/');	
$modArHelper = new modArticlesHelper();
$items = $modArHelper->excute($params, $module);

if(empty($items))
{
	echo JText::_('Articles Simple Slider');
}
else
{	
	if (!defined ('SOTJQUERY'))
	{
		define ('SOTJQUERY', 1);
		JHTML::script('jquery1.5-sot.min.js', JURI::base() . 'modules/'.$module->module.'/assets/');
	}
	if (!defined ('SOTSIMPLESLIDER')) 
	{
		define ('SOTSIMPLESLIDER', 1);
		JHTML::script('jquery.jcarousel.js', JURI::base() . 'modules/'.$module->module.'/assets/');
		JHTML::script('jquery.easing.1.3.js', JURI::base() . 'modules/'.$module->module.'/assets/');
		JHTML::script('jquery.hoverIntent.minified.js', JURI::base() . 'modules/'.$module->module.'/assets/');
		
	}
	$path = JModuleHelper::getLayoutPath( $module->module );
	if (file_exists($path)) {
		require($path);
	}
}
/*-- end---*/
?>
